package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.NurseDao;
import com.aaa.hospital.ManagementEnd.pojo.Nurse;
import com.aaa.hospital.ManagementEnd.service.NurseSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NurseImpl implements NurseSer {
    @Autowired
    private NurseDao nurseDao;

    @Override
    public List<Nurse> queryAll() {
        return nurseDao.queryAll();
    }

    @Override
    public int update(Nurse nurse) {
        return nurseDao.update(nurse);
    }

    @Override
    public int delete(int nurid) {
        return nurseDao.delete(nurid);
    }

    @Override
    public int insert(Nurse nurse) {
        return nurseDao.insert(nurse);
    }

    @Override
    public List<Nurse> selectN_id_Name(Integer nurid, String name) {
        return nurseDao.selectN_id_Name(nurid,name);
    }
}
